﻿// C_Score_Dialog.cpp: 实现文件
//

#include "pch.h"
#include "管理系统.h"
#include "afxdialogex.h"
#include "C_Score_Dialog.h"


// C_Score_Dialog 对话框

IMPLEMENT_DYNAMIC(C_Score_Dialog, CDialogEx)

C_Score_Dialog::C_Score_Dialog(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_ADDSCORE_DLG, pParent)
	, m_score_czxt(60)
	, m_score_wjyl(60)
	, m_score_cpp(60)
	, m_score_c(60)
{

}

C_Score_Dialog::~C_Score_Dialog()
{
}

void C_Score_Dialog::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_CZXT, m_score_czxt);
	DDX_Text(pDX, IDC_WJYL, m_score_wjyl);
	DDX_Text(pDX, IDC_CYYCXSJ, m_score_c);
	DDX_Text(pDX, IDC_CPPCXSJ, m_score_cpp);
	DDX_Text(pDX, IDC_CYYCXSJ, m_score_c);
	DDX_Text(pDX, IDC_EDIT_XUEHAO, m_stu_Num);
	DDX_Text(pDX, IDC_EDIT_NAME, m_stu_Name);
	DDX_Text(pDX, IDC_EDIT_CLASS, m_stu_Grade);
	DDX_Text(pDX, IDC_EDIT_MAJOR, m_stu_Major);
	DDX_Text(pDX, IDC_EDIT_GROUND, m_stu_Class);
}


BEGIN_MESSAGE_MAP(C_Score_Dialog, CDialogEx)
	ON_BN_CLICKED(IDC_BUTTON2, &C_Score_Dialog::OnBnClickedButton2)
END_MESSAGE_MAP()


// C_Score_Dialog 消息处理程序


BOOL C_Score_Dialog::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  在此添加额外的初始化

	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}


void C_Score_Dialog::OnBnClickedButton2()
{
	// TODO: 在此添加控件通知处理程序代码
	UpdateData(true);

	MessageBox(L"添加学生成绩成功");


	EndDialog(IDOK);
}
